<?php
if (defined(ABSPATH)) {
    require_once(ABSPATH . "modules/print-head.inc.php");
} else {
    define("ABSPATH", $_SERVER['DOCUMENT_ROOT'] . "/");

    require_once(ABSPATH . "modules/print-head.inc.php");
}
// Include print lib
require_once(ABSPATH . "modules/print.inc.php");
session_start();
// Init data
$table = $_SESSION['print_table'];
$classesId = unserialize($_SESSION['print_myclass']);
$trackGroupId = unserialize($_SESSION['print_track']);
$fieldGroupId = unserialize($_SESSION['print_field']);
// Switch table
switch ($table) {
    case SPORT_APPLY:
        printSportApply($classesId);
        break;
    case TRACK_GROUP:
        printTrackGroup($trackGroupId);
        break;
    case FIELD_GROUP:
        printFieldGroup($fieldGroupId);
        break;
    case RECORD_CARD:
        printRecordCard();
        break;
    default:
	    echo "Please select print table.";
        break;
}

?>